@import 'shared';

:local(.ui) {
  @extend %default-font;

  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  pointer-events: none;
  color: var(--scene-text-color);
}

:local(.whiteOverlay) {
  background-color: var(--scene-loading-overlay-color);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

:local(.grid) {
  display: grid;
  grid-template-columns: 1fr 20px minmax(200px, 400px) 20px 1fr;
  grid-template-rows: 1fr 3fr 1fr;
  width: 100%;
  height: 100%;
}

:local(.mainPanel) {
  grid-column: 3;
  grid-row: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: auto;

}

:local(.logoTagline) {
  @extend %background-agnostic;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  font-size: 1.2em;
  margin-bottom: 32px;
}

:local(.tweetButton) {
  @extend %action-button;
  background-color: var(--twitter-action-color);
  align-self: center;
  padding-right: 32px;
  display: flex;
  flex-direction: row;

  img {
    width: 42px;
    height: 42px;
    margin-right: 6px;
  }
}

:local(.logo) {
  width: 100%;
  display: block;
  filter: drop-shadow(0 0 4px #888);

  img {
    width: 100%;
  }
}

:local(.info) {
  position: absolute;
  color: var(--scene-overlay-text-color);
  text-shadow: 0px 0px 10px #888;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
}

:local(.name) {
  font-weight: bold;
  font-size: 1.6em;
}

:local(.attribution) {
  font-size: 1.0em;
  white-space: wrap;

  .remix {
    font-size: 0.8em;
  }

  a {
    font-size: 0.8em;
    color: var(--scene-overlay-text-color);
    pointer-events: auto;
  }
}

:local(.screenshot) {
  position: absolute;
  width: 115%;
  height: 115%;
  top: -40px;
  left: -40px;

  img {
    width: 100%;
    height: 100%;
  }

  background-color: black;
  filter: blur(10px);
}

:local(.screenshotHidden) {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s linear;
}

:local(.spoke) {
  @media(max-width: 768px) {
    display: none;
  }

  pointer-events: auto;
  position: absolute;
  right: 12px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.8em;
  font-weight: bold;

  :local(.madeWith) {
    color: var(--scene-overlay-text-color);
    text-shadow: 0px 0px 4px #333;
    margin-left: 4px;
    position: absolute;
    top: -1em;
    left: 0;
  }

  img {
    width: 200px;
  }
}

:local(.createButtons) {
  position: relative;
  display: flex;
  margin-bottom: 12px;
}

:local(.createButton) {
  @extend %action-button;
  width: 100%;
  border: 0;
  flex: 1;
}

:local(.optionsButton) {
  @extend %fa-icon-button;
  @extend %fa-icon-big;
  position: absolute;
  right: 10px;
  top: 2px;
  color: $action-text-color;
}

:local(.unavailable) {
  color: var(--post-session-splash-text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

:local(.spokeButton) {
  @extend %spoke-action-button;
  display: flex;
  flex-direction: row;
  margin-bottom: 12px;
  align-self: center;
  padding-left: 30px;
  padding-right: 30px;

  svg {
    font-size: 24px;
    margin-right: 15px;
  }
}
